//
//  Utils.h
//  Whatnet_iOS
//
//  Created by Bill on 2019/4/19.
//  Copyright © 2019 什么网络. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface Utils : NSObject
//des 加密
+ (NSString *) encryptUseDES:(NSString *)plainText;
//des 解密
+ (NSString *) decryptUseDES:(NSString*)cipherText;
//dict的所有key的value值拼接字符串
+(NSString *) stringWithAllValue:(NSDictionary *)dict;
//sign校验  yes 为校验通过  no 不通过
+(BOOL) stringWithData:(id)data message:(NSString*)msg sign:(NSString*)sign;

//是否是有效手机号
+(BOOL)isValidTelePhone:(NSString*)text;
//是否越狱
+ (BOOL)isJailBreak;

//美颜相关
+ (NSArray *)getBeautyList;
+ (NSArray *)getFilterList;
+ (UIImage *)getFilterImage:(NSString *)imageName;
+ (NSArray *)getEffectsList;


//星座
+(NSString *)getAstroWithMonth:(int)m day:(int)d;
//根据星座获取时间段
+(NSString *)getDateWithConstellation:(NSString*)Constellation;
//将秒时间转为00:00
+ (NSString *)timeIntervalFormatToString:(NSTimeInterval)time;
//获取当前屏幕显示的viewcontroller
+ (UIViewController *)topViewController;
+ (UIViewController *)_topViewController:(UIViewController *)vc;
+ (CGSize)sizeWithFont:(UIFont *)font width:(CGFloat)width content:(NSString *)content;
//当数据大于某个值时转换成带单位的
+ (NSString *)switchCount:(NSInteger)count;
@end

NS_ASSUME_NONNULL_END
